import React from 'react'
import {useSearchParams} from 'react-router-dom'

export default function ProductDetail() {
  const [params]=useSearchParams()
 
  return (
    <div>
        <h2>商品详情</h2>
        <div>
            ID:{params.get("id")}
        </div>
    </div>
  )
}
